using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartAgricultureService.Tables
{
    [Table("Crop")]
    public class CropEntry
    {
        [Key]
        [MaxLength(50)] 
        public string Id { get; set; }
        [MaxLength(50)]
        public string Name { get; set; }
        public decimal Temperature { get; set; }
        public decimal Humidity { get; set; }
        public decimal Illumination { get; set; }
        public bool Active { get; set; }
        public bool Delete { get; set; }
        public virtual ICollection<DeviceEntry> Devices { get; set; }
    }
}